import { Link, Outlet } from 'umi';
import styles from './Home.less';

export default function Layout() {
  return (
    <div className={styles.navs}>
      <ul>
        <li>
          <Link to="/">Home</Link>
        </li>
        <li>
          <Link to="/home/about">About</Link>
        </li>
        <li>
          <Link to="/home/doctors">Doctors</Link>
        </li>
      </ul>
      {/* 子路由的组件输出 */}
      <Outlet />
    </div>
  );
}
